package com.adtech.adms;


/**
 * 
 * 
 * @author Dormin 
 * @since 2011-3-22 
 * 
 * @Copyright (C) AD Tech Workshop All Right Reserved
 */
public final class Constants {

	public static final String CONFIG_FILE_NAME = "adms.properties";
	
	public static final String CONFIG_SYNC_FILE_NAME = "sync.properties";

	public static final String PARAM_KEY_AJAX = "ajax";

	public static final String DEFAULT_ENCODING = "UTF-8";

	public static final String LOGIN_ACTION_NAME = "login";
	
	public static final String LOGOUT_ACTION_NAME = "logout";

	public static final String SERVICE_SYSTEM_LOG = "systemLogService";
	
	public static final String SERVICE_CONFIG = "configService";
	
	public static final String SERVICE_DATA_DICTIONARY = "dataDictionaryService";
	
	public static final String SERVICE_FILEINFO = "fileinfosService";
	
	public static final String SERVICE_PLANTASKLIBRARY = "planTaskLibraryService";
	
	public static final String SERVICE_PREPLANBATCH = "prePlanBatchService";
	
	public static final String SERVICE_MONTH_PROGRESS = "monthProgressService";
	
	public static final String SERVICE_PLAN_PROJECT = "planProjectService";
	
	public static final String SERVICE_PREPLAN = "prePlanService";
	
	public static final String SERVICE_PREPROJECT = "preProjectService";
	
	public static final String SERVICE_PREFEABATCH = "preFeaBatchService";
	
	public static final String SERVICE_PREMONTHSCHEDULE = "preMonthScheduleService";
	
	public static final String SERVICE_COMPANY = "companyService";
	
	public static final String SERVICE_WORKFLOW = "wfService";
	
	public static final String SERVICE_CUSTOM_BUSINESS = "customizeBusinessService";
	
	public static final String DAO_BUSINESS = "businessDao";
	
	public static final String DAO_BUSINESS_HOLD = "businessHoldDao";
	
	public static final String JDBC_DAO = "jdbcDao";
	
	public static final String NEW_SESSION_FACTORY = "&sessionFactory"; //勿动
	public static final String SESSION_FACTORY = "sessionFactory";
	
	public static final String FUNCTION_CONTEXT = "functionContext";

	public static final String CASTOR_PATH = "/castor/";
	public static final String FREEMARKER_PATH = "/template/";
	public static final String FILE_VIEW_PATH = "/fileview/";
	
	
	public static final String SYSTEM_LOG_MAPPING = CASTOR_PATH + "systemlog-mapping.xml";
	public static final String SYSTEM_LOG_CONFIG  = CASTOR_PATH + "systemlog.xml";

	public static final String KEEP_ALIVE_CONFIG_PATH = "WEB-INF/classes/keepalive.conf";

	public static final String LOGIN_TYPE_SYSTEM = "系统";
	public static final String LOGIN_TYPE_EIP = "EIP";
	public static final String LOGIN_TYPE_VPN = "VPN";

	public static final Long ROOT_REGION_ID = -1L;
	
	public static final int REGION_LEVEL_ROOT = 0; //地区级别：网公司
	public static final int REGION_LEVEL_PROVINCE = 1;//地区级别：省局
	public static final int REGION_LEVEL_CITY = 2;//地区级别：地市局
	public static final int REGION_LEVEL_DISTRICT = 3;//地区级别：区县局

	public static final int COUNTRY_LEVEL = 4; //区县
	public static final int CITY_LEVEL = 3; //市局
	public static final int PROVINCE_LEVEL = 2; //省公司
	public static final int SOUTH_GRID_LEVEL = 1; //南网
	
//	public static final String CHART_TYPE_LINE = "line"; //折线图
//	public static final String CHART_TYPE_COLUMN = "column"; //柱状图
//	public static final String CHART_TYPE_COLUMN_STACKED = "column_stacked"; //柱状图
//	public static final String CHART_TYPE_PIE = "pie"; //饼状图
//	public static final String CHART_TYPE_BAR = "bar"; //横向柱状图
//	public static final String CHART_TYPE_BAR_STACKED = "bar_stacked"; //横向柱状图,叠一行
	
	public static final class TemplateFilterType {		
		public static final String VOLCLASS = "1";
		public static final String AREATYPE = "2";
		
		public static final String FILTEVALUE_ZL = "1";  	//直流
		public static final String FILTEVALUE_500 = "2";  	//500kV
		public static final String FILTEVALUE_220 = "3";	//220kV
		public static final String FILTEVALUE_110 = "4";	//110kV
		public static final String FILTEVALUE_35 = "5";		//35kV
		public static final String FILTEVALUE_10_20 = "6";	//10(20)kV及以下
		public static final String FILTEVALUE_JN = "7";		//境内电源
		public static final String FILTEVALUE_JW = "8";		//境外电力
	}
	
	
	public static final class Library {
		public static final String ALL_NAME = "全部";
		
		public static final String REPORT_NAME = "正在上报";
		public static final String STOP_NAME = "停止上报";
		public static final String TRANSMIT_NAME = "已下达";
		
		public static final String ALL_VALUE = "";
		public static final String REPORT_VALUE = "0";
		public static final String STOP_VALUE = "1";
		public static final String TRANSMIT_VALUE = "2";
		
		public static final String WT_FLG = "1";
		public static final String IS_ADJUSTMENT = "1";
		public static final String TRANSMITED = "1";
	}

	public static final String LOG_TRACE_START_STRING = "Trace[开始]";//用于日志的跟踪
	public static final String LOG_TRACE_END_STRING = "Trace[结束]";//用于日志的跟踪
	
	public static final String SUM_TITLE = "合计";
	
	public static final class FileExt {
		public static final String DOCX = "docx";
		public static final String DOC = "doc";
		public static final String XLS = "xls";
		public static final String XLSX = "xlsx";
		public static final String PPT = "ppt";
		public static final String PPTX = "pptx";
		public static final String PDF = "pdf";
		public static final String JPG = "jpg";
		public static final String JPEG = "jpeg";
		public static final String BMP = "bmp";
		public static final String PNG = "png";
		public static final String GIF = "gif";
		public static final String TIF = "tif";
		public static final String HTML = "html";
	}
	
	public static final String FILE_TYPE_OFFICE = "1";
	public static final String FILE_TYPE_PDF = "2";
	public static final String FILE_TYPE_IMAGE = "3";
	public static final String FILE_TYPE_OTHER = "4";
	
	public static final String PLAN_PROJECT_MAP = "planProjectMap";
	
	public static final String FOUNDATION_PUB_FLAG = "1";
	
	public static final String PROJECT_TYPE_SDW = "1";
	public static final String PROJECT_TYPE_PDW = "2";
	public static final String PROJECT_TYPE_POWER = "3";
	
	public static final String FUNCTION_SAVE = "保存";
	
	public static final String TAB_TEMPLATE_CODE = "tab1";
	
}
